package com.ksyun.campus.metaserver.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * MetaServer instance information
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MetaServerInfo {
    
    private String instanceId;
    private String host;
    private int port;
    private boolean isLeader;
    private long startTime;
    private LocalDateTime lastHeartbeat;
    private LocalDateTime leaderElectedTime;
}
